﻿using CHSystemApi.Business.implement;
using CHSystemApi.DataAccess;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

namespace CHSystemApi.Business
{
    public static class Services
    {
        /// <summary>
        /// 业务逻辑层依赖注入
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IServiceCollection AddBusinessByScoped(this IServiceCollection services)
        {
            return services.AddScoped<IUserBusiness, UserBusiness>()
                .AddScoped<IPermissionBusiness, PermissionBusiness>();
        }
    }
}
